import api from '@/api';

/**
 * 首页数据
 */
export const homeGet = () => {
  return api.get('/medinstrument/site/index');
};

/**
 * 推荐商品数据
 */
export const goodsListGet = (data: any) => {
  return api.get(
    `/medinstrument/site/list?goodsType=${data.goodsType}&page=${data.page}&limit=${data.limit}`,
  );
};

/**
 * 商品标签
 */
export const goodsByTagtGet = (data: any) => {
  return api.get(`/medinstrument/site/goods/getGoodsByTag?tagId=${data.tagId}`);
};
